package com.thermal.thermal_inspection.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.thermal.thermal_inspection.entity.Result;

import java.util.List;

@Mapper
public interface ResultMapper {
    Result selectById(Integer patientId);
    List<Result> selectAll();
    int insertResult(Result result);
    int updateResult(Result result);
    int deleteById(Integer resultId);
    // ResultMapper.java

    List<Result> searchResults(@Param("patientName") String patientName,
                               @Param("doctorName") String doctorName,
                               @Param("diagnosisType") String diagnosisType);

}

